#ifndef EDGEBODY_H
#define EDGEBODY_H

#include "bodywrapper.h"
#include <Box2D/Box2D.h>

class EdgeBody : public BodyWrapper
{
public:
    EdgeBody(b2World *world,
             b2Vec2 start,
             b2Vec2 end,
             b2Vec2 pivot_center,
             float density = 0.f,
             float friction = 0.f);

    virtual bool inRegion(int top, int left, int right, int bottom) override;
    virtual void draw(QPainter *) override;

private:
    void createBody();

private:
    b2Vec2 start;
    b2Vec2 end;
};

#endif // EDGEBODY_H
